package com.dingup.mock.dao.listening;

import com.dingup.mock.bean.listening.TsListeningQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by yanggavin on 16/4/13.
 */
@Mapper
public interface TsListeningQuestionsMapper {
    Boolean add(TsListeningQuestion tsListeningQuestion);
    Boolean update(TsListeningQuestion tsListeningQuestion);
    Boolean delete(TsListeningQuestion tsListeningQuestion);
    Boolean deleteByArticleId(Integer tsListeningArticleId);
    List<TsListeningQuestion> getQuestions(Map<String, Object> param);
    TsListeningQuestion getQuestion(Map<String, Object> param);
    List<TsListeningQuestion> getList(TsListeningQuestion article);
    TsListeningQuestion getById(Integer id);
    Boolean existQuestion(TsListeningQuestion article);
    TsListeningQuestion getQuestionByArticle(@Param("subjectName") String subjectName, @Param("articleNum") Integer articleNum, @Param("questionNum") Integer questionNum);
}
